home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 19 / CU Amiga Magazine's Super CD-ROM 19 (1998)(EMAP Images)(GB)[!][issue 1998-02].iso / CUCD / Readers / Gui4Cli / Docs / Tutorials / CheckBoxes.gc < prev    next >
Text File  |  1997-12-02  |  1KB  |  53 lines

  1. G4C
  2.  
  3. WinBig -1 -1 250 160 "CheckBoxes.gc"
  4. WinType 11110001
  5. usetopaz
  6.  
  7. BOX 0 0 0 0 OUT RIDGE
  8. LINE 2 88 246 88 1
  9.  
  10. xonLoad 
  11. ; ---- Preset these texts to show the values of the
  12. ;      variables when we load
  13. Update CheckBoxes.gc 1 'ON'
  14. Update CheckBoxes.gc 2 'No'
  15. Update CheckBoxes.gc 3 'TRUE'
  16. GuiOpen CheckBoxes.gc
  17.  
  18. xonClose
  19. GuiQuit CheckBoxes.gc
  20.  
  21. CText 80 10 'CheckBoxes' #screen 8 2 0 0001
  22.  
  23. Text 16 90 100 14 'Current settings of the' 25 NOBOX
  24. Text 16 99 100 14 'checkbox variables are' 25 NOBOX
  25. Text 66 114 80 14 'First ' 25 NOBOX
  26. Text 66 128 80 14 'Second ' 25 NOBOX
  27. Text 66 142 80 14 'Third ' 25 NOBOX
  28.  
  29. ; ---- These text gadgets will be updated when a checkbox is clicked
  30. Text 130 114 50 12 '    ' 25 BOX
  31. gadid 1
  32. Text 130 128 50 12 '    ' 25 BOX
  33. gadid 2
  34. Text 130 142 50 12 '    ' 25 BOX
  35. gadid 3
  36.  
  37. ; Here are the three CheckBox entries
  38. ; Each xCheckBox entry takes the following arguments :
  39. ;          L   T  W  H  Title  Var OnText OffText State
  40. ;          |   |  |  |    |     |   |     |       |
  41. xCheckBox 110 30 26 11 'First' cb1 'On' 'Off'     ON
  42. Update CheckBoxes.gc 1 '$cb1'
  43.  
  44. ; The On and OffText can be whatever you need
  45. xCheckBox 110 50 26 11 'Second' cb2 'Yes' 'No' OFF
  46. Update CheckBoxes.gc 2 '$cb2'
  47.  
  48. xCheckBox 110 70 26 11 'Third' cb3 'TRUE' 'FALSE' ON
  49. Update CheckBoxes.gc 3 '$cb3'
  50.  
  51. ; The three checkboxes used here are the 'standard' size of
  52. ; W 26 H 11, but other sizes can be used.
  53.